package com.cx.postprocesser;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @Author:cxy
 * @Date:2022/2/9 21:46
 */
@Component
public class MyBeanFactoryPostProcesser implements BeanFactoryPostProcessor {

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        final DefaultListableBeanFactory dfbf = (DefaultListableBeanFactory) configurableListableBeanFactory;
        System.out.println("============BeanFactoryPostProcessor");
    }
}
